<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统设置</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<script type="text/javascript" src="template/images/admin.js"></script>
<script type="text/javascript" src="template/images/box/thickbox.js"></script>
<link type="text/css" href="template/images/box/thickbox.css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function(){
	$('.info_qh').find('ul li').click(function(){
		$index=$('.info_qh').find('ul li').index(this);
		$(this).addClass('on').siblings().removeClass('on');
		$('#tb').find('div').eq($index).show().siblings().hide();
	});
			
});

function mark_text(){
	$('#pic_mark').hide();
	$('#text_mark').show();
}
function mark_pic(){
	$('#text_mark').hide();
	$('#pic_mark').show();
}
</script>
<?php
	$tech_num = (count($tech_arr)-1);
	$show_tech = $tech_arr[rand(0,$tech_num)];
?>
<script type="text/javascript">
	$(document).ready(function(){
		$str = '<?php echo $show_tech;?>';
		$('#show_tech').html("<em>小提示：</em>"+$str).fadeIn('slow');
	});
</script>
</head>

<body>
<div class="admin_position"><span>当前位置 > 系统配置</span><p id="show_tech" style="display:none"></p></div><!--位置-->
		<!--开始表单-->
		<div class="order_contain">
		<form name="maininfo" method="post" class="form">
		<div class="order_main">
	<div class="info_qh" style="margin-top:20px;">
 <ul>
  <li class="on">附件设置</li>
  <li>会员设置</li>
  <li>图片水印</li>
  <li>邮箱设置</li>
  <li>验证安全</li>
  <li>其它设置</li>
 </ul>
 <div class="clear"></div>
</div>
<div id="tb">
 <div id="sys1" style="display:block">
 <table cellpadding="0" cellspacing="0" width="100%" class="table_info1">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">允许上传的文件类型(用|分割):</td><td class="w2"><textarea name="web_upload_file" style="width:95%; height:50px;"><?php echo $_sys['web_upload_file'];?></textarea></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">缩略图默认宽度(px):</td><td class="w2"><input type="text" name="thump_width" style="width:30%" value="<?php echo $_sys['thump_width'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">缩略图默认高度(px):</td><td class="w2"><input type="text" name="thump_height" style="width:30%" value="<?php echo $_sys['thump_height'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">允许上传文件的最大值:</td><td class="w2"><input type="text" name="upload_size" style="width:50%" value="<?php echo empty($_sys['upload_size'])?ini_get('upload_max_filesize'):$_sys['upload_size'];?>"/>Bytes</td><td class="w3"></td>
		</tr>
    </tbody>
 </table>
 </div>
 
  <div id="sys2" style="display:none">
 <table cellpadding="0" cellspacing="0"  class="table_info1" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">是否开启会员注册:</td><td class="w2"><label for="f1"><input id="f1" type="radio" value="1" name="web_member[]" style="margin:0 5px;border:0" <?php if ($_sys['web_member'][0]==1){?>checked="checked"<?php }?>/>是</label><label for="f2"><input id="f2" style="margin:0 5px;border:0" type="radio" value="0" name="web_member[]" <?php if ($_sys['web_member'][0]==0){?>checked="checked"<?php }?>/>否</label></td><td class="w3"></td>
		</tr>
		<tr style="display:none">
		  <td class="w1">注册审核方式:</td><td class="w2"><label for="f3"><input id="f3" type="radio" value="1" name="is_member[]" style="margin:0 5px;border:0" <?php if ($_sys['is_member'][0]==1){?>checked="checked"<?php }?>/>直接注册</label><label for="f4"><input id="f4" style="margin:0 5px;border:0" type="radio" value="0" name="is_member[]" <?php if ($_sys['is_member'][0]==0){?>checked="checked"<?php }?>/>审核通过</label></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">同一邮箱是否可以多次注册:</td><td class="w2"><label for="f5"><input id="f5" type="radio" value="1" name="member_mail[]" style="margin:0 5px;border:0" <?php if ($_sys['member_mail'][0]==1){?>checked="checked"<?php }?>/>是</label><label for="f6"><input id="f6" style="margin:0 5px;border:0" type="radio" value="0" name="member_mail[]" <?php if ($_sys['member_mail'][0]==0){?>checked="checked"<?php }?>/>否</label></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">不允许注册的会员名(用|分割):</td><td class="w2"><textarea name="member_no_name" style="width:95%; height:50px;"><?php echo $_sys['member_no_name'];?></textarea></td><td class="w3"></td>
		</tr>
    </tbody>
 </table>
 </div>
 
 <div id="sys3" style="display:none">
 <table cellpadding="0" cellspacing="0" class="table_info1" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">开启水印:</td><td class="w2"><label for="f7"><input id="f7" type="radio" value="1" name="image_is[]" style="margin:0 5px; border:none" <?php if($_sys['image_is'][0]){?>checked="checked"<?php }?>/>是</label><label for="f8"><input id="f8" style="margin:0 5px; border:none" type="radio" value="0" name="image_is[]" <?php if(!$_sys['image_is'][0]){?>checked="checked"<?php }?>/>否</label></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">运程下载图片开启水印:</td><td class="w2"><label for="f9"><input id="f9" type="radio" value="1" name="image_url_is[]" style="margin:0 5px; border:none" <?php if($_sys['image_url_is'][0]){?>checked="checked"<?php }?>/>是</label><label for="f10"><input id="f10" style="margin:0 5px; border:none" type="radio" value="0" name="image_url_is[]" <?php if(!$_sys['image_url_is'][0]){?>checked="checked"<?php }?>/>否</label></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">水印类型:</td><td class="w2"><label for="f11"><input id="f11" type="radio" value="0" name="image_type[]" style="margin:0 5px; border:none" <?php if(!$_sys['image_type'][0]){?>checked="checked"<?php }?> onclick="mark_text();"/>文字</label><label for="f12"><input id="f12" style="margin:0 5px; border:none" type="radio" value="1" name="image_type[]" <?php if($_sys['image_type'][0]){?>checked="checked"<?php }?> onclick="mark_pic();"/>图片</label></td><td class="w3"></td>
		</tr>
		<tbody id="text_mark" style="display:<?php if(!$_sys['image_type'][0]){echo"";}else{echo "none";}?>">
		<tr>
		  <td class="w1"><span title="目前不支持中文,使用中文请使用图片水印" class="help">水印文字(文字水印):</span></td><td class="w2"><input type="text" name="image_text" value="<?php echo $_sys['image_text'];?>" style="width:50%"/></td><td class="w3">&nbsp;</td>
		</tr>
		<tr>
		  <td class="w1"><span title="0-255之间的数值,用,分割" class="help">文字颜色(文字水印):</span></td><td class="w2"><input type="text" name="image_text_color" value="<?php echo $_sys['image_text_color'];?>" style="width:50%"/></td><td class="w3">&nbsp;</td>
		</tr>
		<tr>
		  <td class="w1">文字大小(文字水印):</td><td class="w2"><input type="text" name="image_text_size" value="<?php echo $_sys['image_text_size'];?>" style="width:50%"/></td><td class="w3">&nbsp;</td>
		</tr>
		</tbody>
		<tbody id="pic_mark" style="display:<?php if($_sys['image_type'][0]){echo"";}else{echo "none";}?>">
		<tr>
		  <td class="w1">水印图片:</td><td class="w2"><img src="<?php echo CMS_SELF.'upload/'.$_sys['pic'];?>" border="0"/></td><td class="w3">&nbsp;</td>
		</tr>
		<tr>
		  <td class="w1">上传水印图片:</td><td class="w2"><input style="width:200px; display:block; float:left" name="pic" value="<?php echo $_sys['pic'];?>"  id="pic_path"/>通过ftp上传图片到upload下覆盖mark_logo.gif</td><td class="w3">&nbsp;</td>
		</tr>
		</tbody>
		<tr>
		  <td class="w1">水印位置</td><td class="w2"><table cellpadding="0" cellspacing="0" width="60%">
		  	<tr>
				<td width="20%"><label for="f13"><input id="f13" type="radio" style="border:0" name="image_position[]" value="1" <?php if($_sys['image_position'][0]==1){?>checked="checked"<?php }?>/>顶部居左</label></td><td width="20%"><label for="f14"><input id="f14" type="radio" style="border:0" name="image_position[]" value="2" <?php if($_sys['image_position'][0]==2){?>checked="checked"<?php }?>/>顶部居中</label></td><td width="20%"><label for="f15"><input id="f15" type="radio" style="border:0" name="image_position[]" value="3" <?php if($_sys['image_position'][0]==3){?>checked="checked"<?php }?>/>顶部居右</label></td>
			</tr>
			<tr>
				<td width="20%"><label for="f16"><input id="f16" type="radio" name="image_position[]" value="4" style="border:0" <?php if($_sys['image_position']==4){?>checked="checked"<?php }?>/>中部居左</label></td><td width="20%"><label for="f17"><input id="f17" type="radio" name="image_position[]" value="5" style="border:0" <?php if($_sys['image_position'][0]==5){?>checked="checked"<?php }?>/>中部居中</label></td><td width="20%"><label for="f18"><input id="f18" type="radio" name="image_position[]" value="6" style="border:0" <?php if($_sys['image_position'][0]==6){?>checked="checked"<?php }?>/>中部居右</label></td>
			</tr>
			<tr>
				<td width="20%"><label for="f19"><input id="f19" type="radio" name="image_position[]" value="7" style="border:0" <?php if($_sys['image_position'][0]==7){?>checked="checked"<?php }?>/>底部居左</label></td><td width="20%"><label for="f20"><input id="f20" type="radio" name="image_position[]" value="8" style="border:0" <?php if($_sys['image_position'][0]==8){?>checked="checked"<?php }?>/>底部居中</label></td><td width="20%"><label for="f21"><input id="f21" type="radio" name="image_position[]" value="9" style="border:0" <?php if($_sys['image_position'][0]==9){?>checked="checked"<?php }?>/>底部居右</label></td>
			</tr>
		  </table></td><td class="w3"></td>
		</tr>
	</tbody>
 </table>
 
 </div>
 
 <div id="sys4" style="display:none">
 <table cellpadding="0" cellspacing="0" width="100%" class="table_info1">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
	<tr>
		  <td class="w1">邮件发送类型:</td><td class="w2"><input type="radio" name="mail_type[]" value="1" checked="checked"/>SMTP协议发送<span style="color:#FF0000">(邮件功能操作的时候请耐性等待)</span></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">邮件服务器地址:</td><td class="w2"><input type="text" name="mail_host" value="<?php echo empty($_sys['mail_host'])?'smtp.163.com':$_sys['mail_host'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">邮件发送端口:</td><td class="w2"><input type="text" name="mail_pot" style="width:30%" value="<?php echo empty($_sys['mail_pot'])?'25':$_sys['mail_pot'];?>"/>一般不用修改</td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">发送邮箱:</td><td class="w2"><input type="text" name="mail_mail" style="width:50%" value="<?php echo $_sys['mail_mail'];?>"/>建议使用新注册(不常用)邮箱发送</td><td class="w3"></td>
		<tr>
		  <td class="w1">发送邮箱帐号:</td><td class="w2"><input type="text" name="mail_user" style="width:50%" value="<?php echo $_sys['mail_user'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">发送邮箱密码:</td><td class="w2"><input type="password" name="mail_pw" style="width:50%" value="<?php echo $_sys['mail_pw'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">接送邮箱:</td><td class="w2"><input type="text" name="mail_js" style="width:50%" value="<?php echo $_sys['mail_js'];?>"/>接收反馈信息，建议填写常用邮箱，为空使用发送邮箱接收</td><td class="w3"></td>
		<tr>
		  <td class="w1">邮件结尾说明:</td><td class="w2"><textarea name="mail_jw" style="width:95%; height:50px;"><?php echo empty($_sys['mail_jw'])?'FOXSCMS企业网站管理系统 http://fsai.cn':$_sys['mail_jw'];?></textarea></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">接收反馈设置:</td><td class="w2"><label for="m1"><input id="m1" type="checkbox" value="1" name="mail_feed[]" style="border:none; margin-top:3px"  
		  <?php if(!empty($_sys['mail_feed'])){
		  		foreach($_sys['mail_feed'] as $k=>$v){
				if($v=='1'){
		  ?>checked="checked"
		  <?php 
		  }
		  }
		  }?>
		  />表单反馈</label><label for="m2"><input id="m2" style="border:none;margin-top:3px" type="checkbox" value="2" name="mail_feed[]"  
		   <?php if(!empty($_sys['mail_feed'])){
		  		foreach($_sys['mail_feed'] as $k=>$v){
				if($v=='2'){
		  ?>checked="checked"
		  <?php 
		  }
		  }
		  }?>
		  />会员反馈</label>
		  <label for="m3"><input id="m3" style="border:none;margin-top:3px" type="checkbox" value="3" name="mail_feed[]"  
		   <?php if(!empty($_sys['mail_feed'])){
		  		foreach($_sys['mail_feed'] as $k=>$v){
				if($v=='3'){
		  ?>checked="checked"
		  <?php 
		  }
		  }
		  }?>
		  />留言反馈</label></td><td class="w3"></td>
		</tr>
    </tbody>
 </table>
 </div>
 
 <div id="sys5" style=" display:none">
 
  <table cellpadding="0" cellspacing="0" class="table_info1" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">开启系统验证码:</td><td class="w2"><label for="f22"><input id="f22" type="checkbox" value="1" name="safe_open[]" style="border:none"  
		  <?php if(!empty($_sys['safe_open'])){
		  		foreach($_sys['safe_open'] as $k=>$v){
				if($v=='1'){
		  ?>checked="checked"
		  <?php 
		  }
		  }
		  }?>
		  />会员注册</label><label for="f23"><input id="f23" style="border:none" type="checkbox" value="2" name="safe_open[]"  
		   <?php if(!empty($_sys['safe_open'])){
		  		foreach($_sys['safe_open'] as $k=>$v){
				if($v=='2'){
		  ?>checked="checked"
		  <?php 
		  }
		  }
		  }?>
		  />会员登录</label><label for="f24"><input id="f24" style="border:none" type="checkbox" value="3" name="safe_open[]"  
		   <?php if(!empty($_sys['safe_open'])){
		  		foreach($_sys['safe_open'] as $k=>$v){
				if($v=='3'){
		  ?>checked="checked"
		  <?php 
		  }
		  }
		  }?>
		  />管理登录</label></td><td class="w3"></td>
		</tr>
	</tbody>
 </table>
 
 </div>
 
 <div id="sys6" style="display:none">
 <table cellpadding="0" cellspacing="0" class="table_info1" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">内容标题最大长度(10-240之间):</td><td class="w2"><input type="text" name="web_content_title" style="width:30%" value="<?php echo isset($_sys['web_content_title'])&&!empty($_sys['web_content_title'])?$_sys['web_content_title']:'180';?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">内容自动摘要长度(10-240之间):</td><td class="w2"><input type="text" name="web_content_info" style="width:30%" value="<?php echo isset($_sys['web_content_info'])&&!empty($_sys['web_content_info'])?$_sys['web_content_info']:'200';?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">默认点击数:<p style="color:#999999; font-weight:normal">为空或0为1-500间的随机数</p></td><td class="w2"><input type="text" name="is_hits" style="width:30%" value="<?php echo $_sys['is_hits'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">过滤词语（词语会被替换成***）用|分开:</td><td class="w2"><textarea name="fialt_words" style="width:95%; height:50px;"><?php echo $_sys['fialt_words'];?></textarea></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">发布内容时生成html:</td><td class="w2"><label for="f25"><input id="f25" type="radio" name="arc_html[]" style="border:0" <?php if($_sys['arc_html'][0]){?>checked="checked"<?php }?> value="1" />是</label><label for="f26"><input id="f26" type="radio" name="arc_html[]" <?php if(!$_sys['arc_html'][0]){?>checked="checked"<?php }?> value="0" style="border:0" />否</label></td><td class="w3"></td>
		</tr>
		
    </tbody>
 </table>
 </div>
 
</div>
		</div>
		<div class="order_btn">
			<input type="hidden" name="action" value="add_sys"/>
  			<input type="submit" value="确定" name="submit" class="go"/><input type="reset" style="margin:0 10px;" class="go" value="重置" name="reset"/>
 		</div>
		</form>
		</div>
		<!--结束表单-->
		<div style="font-size:12px; color:#CCCCCC; padding:5px 0; text-align:center">powerd by <a href="http://fsai.cn" style="color:#CCCCCC" target="_blank">FOXSCMS</a></div>
	<div class="ie8-height"></div>
</body>
</html>